# Update Data Source

Update a Data Source.

Endpoint: PUT /storages/{storageId}/datasources/{dataSourceId}
Version: 5
Security: apiKey

## Security:

  - `apiKey` (unknown)
    apiKey in header X-API-KEY

## Path parameters:

  - `storageId` (string, required)
    Unique ID of the Business Partner storage.

  - `dataSourceId` (string, required)
    Filter by specified Data Source ID.

## Request fields (application/json):

  - `name` (string)
    Name of a data source of a storage.
    Example: Internal customers

  - `dataMapperDefinitionId` (string)
    ID of related Data Mapper Definition that is used for mapping data of this Business Partner Storage.
    Example: 6440dba32b30176c5917b1b7

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `dataSource` (object)
    A sub-container of Data Storage/Data Mirror. Few data sources can have different data, mappings, and data monitors within the same data mirror.

  - `dataSource.id` (string)
    Unique identifier for a Data Source of the Storage.
    Example: 648824a691d8d2503d65103e

  - `dataSource.createdAt` (string)
    Date of creation (ISO 8601-compliant).
    Example: 2026-11-30T10:28:48Z

  - `dataSource.lastUpdatedAt` (string)
    Date of modification (ISO 8601-compliant).
    Example: 2026-11-30T10:28:48Z

  - `dataSource.name` (string)
    Name of a data source of a storage.
    Example: Internal customers

  - `dataSource.dataMapperDefinitionId` (string)
    ID of related Data Mapper Definition that is used for mapping data of this Business Partner Storage.
    Example: 6440dba32b30176c5917b1b7

  - `status` (string)
    * OK - The Data Source has been updated.
* NOT_FOUND - The Data Source is not found.
    Example: OK

## Response 400:

  - `400` (unknown)
    Bad Request

